package cn.yuanqiao.archive.chooesuser.domain;/**
 * @author 赵常飞
 * @date 2023/8/7 13:53
 */

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.util.List;

/**
 *
 *@AUTHOR:赵常飞
 *@date 2023/8/7 13:53
 */
public class UserTree implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 节点ID */
    @JsonFormat(shape = JsonFormat.Shape.STRING)//转化成string传到前端
    private Long id;

    /** 节点名称 */
    private String label;

    /** 节点类型 */
    private String type;

    /** 是否选中 */
    private int chooesed;

    /** 子节点 */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<UserTree> children;

    public UserTree()
    {

    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getChooesed() {
        return chooesed;
    }

    public void setChooesed(int chooesed) {
        this.chooesed = chooesed;
    }

    public List<UserTree> getChildren() {
        return children;
    }

    public void setChildren(List<UserTree> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "UserTree{" +
                "id=" + id +
                ", label='" + label + '\'' +
                ", type='" + type + '\'' +
                ", chooesed=" + chooesed +
                ", children=" + children +
                '}';
    }
}
